<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<c:set value="${requestScope.ordersGoodsResponse.data.list }" var="goodsList"/>
<jsp:useBean class="com.sys.users.pojo.AUsers" id="pojo"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>下单 - 盲盒商城系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
	</head>
	<body>
		<jsp:include page="/header"/>
		<div id="mainBody">
			<div class="container">
				<div class="row">
					<%@ include file="/common/include/leftBar.jsp"%>
					<form class="form-horizontal" method="post" action="${rootPath }/head/orders/ordersDescUpdateSubmit">
						<input type="hidden" name="id" value="${one.orderId }">
						<input type="hidden" name="status" value="1">
						<input type="hidden" name="operType" value="${param.operType}">
						<div class="span9">
							<ul class="breadcrumb">
								<li><a href="${rootPath }/head/users/main">首页</a><span class="divider">/</span></li>
								<li class="active">个人中心</li>
							</ul>
							<table class="table table-bordered">
								<tbody>
									<tr>
										<th>支付方式</th>
									</tr>
									<tr>
										<td>
											<div class="control-group">
												<label class="control-label" for="receAddress">支付方式</label>
												<div class="controls">
													<select name="pay">
														<option value="0">支付宝</option>
														<option value="1">微信</option>
													</select>
												</div>
											</div>
										</td>
									</tr>
								</tbody>
							</table>
							<table class="table table-bordered">
								<thead>
									<tr>
										<th>商品信息</th>
									</tr>
									<tr>
										<th>序号</th>
										<th>盲盒</th>
										<th>单价</th>
										<th>数量</th>
										<th>总金额</th>
									</tr>
								</thead>
								<tbody>
									<c:set value="0" var="totalMoney"/>
									<c:forEach items="${goodsList }" var="listTemp" varStatus="stat">
										<tr>
											<td>${stat.count }</td>
											<td title="${listTemp.blindbox.blindBoxIntroduce }">
												<a href="${rootPath }/goods/boxInfo?blindBoxId=${listTemp.blindBoxId}" target="_blank" title="${listTemp.blindBoxIntroduce }">
													${fn:substring(listTemp.blindbox.blindBoxIntroduce,0,subStrLen) }
												</a>
											</td>
											<td>${listTemp.settlementPrice }</td>
											<td>${listTemp.goodsQuantity }</td>
											<td>${listTemp.settlementPrice * listTemp.goodsQuantity }</td>
											<c:set value="${totalMoney + listTemp.settlementPrice * listTemp.goodsQuantity }" var="totalMoney"/>
										</tr>
									</c:forEach>
									<tr>
										<td colspan="4" style="text-align: right">
											<strong>总价格 =</strong></td>
										<td class="label label-important" style="display: block">
											<strong>${totalMoney }</strong></td>
									</tr>
								</tbody>
							</table>
							${response.info }
							<button type="submit" class="btn btn-large pull-right" onclick="return confirm('确认操作吗?')">
								下单 <i class="icon-arrow-right"></i>
							</button>
						</div>
					</form>
				</div>
			</div>
		</div>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>